package com.wetalk.api.client;


import com.wetalk.api.dto.Users;
import com.wetalk.api.dto.usersResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

//@FeignClient("WeTalk-service")
@FeignClient("WeTalk-service")
public interface UserClient {
    @GetMapping("/weTalk/users/remotingUser/{id}")
    Users GetUserById2(@PathVariable("id") Integer id);

    @GetMapping("/weTalk/users/all")
    List<Users> GetUsers();

    @GetMapping("/weTalk/users/remoting/{username}")
    List<Users> GetUsersByName(@PathVariable("username") String name);
}
